<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    {include file="../tpl/header.html" /}
</head>
<body>
{include file="../tpl/menu.html" /}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body ">
                    <form class="layui-form layui-col-space5" action="{:url('admin/admin/sysLog')}">
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="name" value="{$name}" placeholder="请输入用户名" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <input type="text" name="url" value="{$url}" placeholder="请输入菜单地址" autocomplete="off" class="layui-input">
                        </div>
                        <div class="layui-input-inline layui-show-xs-block">
                            <select name="req_type">
                                <option value="">请求类型</option>
                                <option value="get" {if condition="'get' eq $req_type"}selected="selected"{/if}>get</option>
                                <option value="post" {if condition="'post' eq $req_type"}selected="selected"{/if}>post</option>
                            </select>
                        </div>
                        <div class="layui-inline layui-show-xs-block">
                            <button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
                        </div>
                    </form>
                </div>
                <div class="layui-card-body layui-table-body layui-table-main">
                    <table class="layui-table layui-form">
                        <thead>
                        <tr>
                            <th>ID</th>
                            <th>用户</th>
                            <th>菜单名称</th>
                            <th>菜单地址</th>
                            <th>请求类型</th>
                            <th>GET数据</th>
                            <th>POST数据</th>
                            <th>操作时间</th>
                        </tr>
                        </thead>
                        <tbody>
                        {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>
                                {if condition="empty($admin_list[$vo['uid']]['name'])"}未知{else/}{$admin_list[$vo['uid']]['name']}{/if}
                            </td>
                            <td>{$vo['menu_name']}</td>
                            <td>{$vo['url']}</td>
                            <td>{$vo['req_type']}</td>
                            <td>{$vo['get']}</td>
                            <td>{$vo['post']}</td>
                            <td>{$vo['add_time']}</td>
                        </tr>
                        {/volist}
                        </tbody>
                    </table>
                </div>
                <div class="layui-card-body ">
                    <div class="page">
                        {$page_info|raw}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form'], function(){});
</script>
</body>
</html>